package ru.sazonov.ide

import org.springframework.context.ApplicationContext
import org.springframework.context.support.ClassPathXmlApplicationContext
import ru.sazonov.ide.parser.Parser
import ru.sazonov.ide.model.ModelPart
import ru.sazonov.ide.model.java.Klass

class Application {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("ru/sazonov/ide/spring.xml");
        
        Parser parser = ctx.getBean(Parser.class);

        String path;
        if(InetAddress.localHost.hostName == 'dima_f')  path = 'f:\\projs\\Idea\\jedit\\';
        else                                            path = 'D:\\Projects\\catalog\\';

        ModelPart mp = parser.parseDirectory(new File(path));
        int l = 5;
    }
}
